package com.wsx.ones.akka.domian;

import com.wsx.ones.bean.OnesBean;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author wangshuaixin
 * @Title: com.wsx.ones.akka.domian.Data
 * @Description: TODO
 * @date 2019/05/10
 */
@NoArgsConstructor
@AllArgsConstructor
public class Data implements OnesBean {

    @Setter @Getter private String name;
    @Setter @Getter private long time;

    @Setter @Getter private String result;

    public Data(String name, long time) {
        this.name = name;
        this.time = time;
    }

    @Override
    public String toString() {
        return "Data{" +
                "name='" + name + '\'' +
                ", time=" + time +
                '}';
    }
}
